//
//  ShopcarCell.h
//  jang
//
//  Created by lee han on 16/04/2017.
//  Copyright © 2017 lee han. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "network.h"

@protocol ShopcalCellDelegate <NSObject>

-(void)onCountChanged:(NSString*)sid Count:(NSInteger)newcount;
-(void)onDelected:(NSString*)sid;
-(void)onClickSelect:(NSString*)sid Selected:(BOOL)isselect;
@end

@interface ShopcarCell : UITableViewCell<networkDelegate>{
    NSString* mReseverId;
    NSInteger mOldCount;
    BOOL mIsSelected;
}

-(void)initWithData:(NSDictionary*)rdata productdata:(NSDictionary*)pdata;
@property(weak) id<ShopcalCellDelegate> mDelegate;

@property (weak, nonatomic) IBOutlet UIImageView *mImageView;
@property (weak, nonatomic) IBOutlet UILabel *mTextName;
@property (weak, nonatomic) IBOutlet UIButton *mButtonSelect;
@property (weak, nonatomic) IBOutlet UILabel *mTextPrice;
@property (weak, nonatomic) IBOutlet UILabel *mTextStandard;
@property (weak, nonatomic) IBOutlet UIStepper *mStepper;
@property (weak, nonatomic) IBOutlet UILabel *mTextCount;
@property (weak, nonatomic) IBOutlet UIView *mContainView;
@end
